package com.hzj.service;

import com.hzj.pojo.UserInfo;
import com.hzj.pojo.vo.user.LoginVo;
import com.hzj.pojo.vo.user.UserAuthVo;
import com.hzj.utils.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

@Service
@FeignClient(name = "PROVIDER-USER-8001")
public interface UserService {

    @PostMapping("/api/user/login")
    Map<String,Object> loginUser(@RequestBody LoginVo loginVo);

    @PostMapping("/api/user/auth/getUserInfo")
    Result getUserInfo();

    @PostMapping("/api/user/auth/userAuah")
    Result userAuah(@RequestBody UserAuthVo userAuthVo) ;

    @PostMapping("/api/user/updateUserMail")
    public Result updateUserMail(@RequestParam(value = "email") String email,@RequestParam(value = "pass") String pass);


}
